export {};

// ts 装饰器
declare type ClassDecorator = <Tfunction extends Function>(
  target: Tfunction
) => Tfunction | void;

function Greeter(target: Function): void {
  target.prototype.greet = function (): void {
    console.log("Hello xuzy!");
  };
}

// @Greeter
// class Greeting {
//   constructor() {}
// }

// let myGreeting = new Greeting();
// myGreeting.greet();
